﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="OnLineCorrection.aspx.cs"
    Inherits="office_OnLineCorrection" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>补正补齐详情</title>
    <link href="../css/page.css" rel="Stylesheet" type="text/css" />
    <script src="../ScriptFile/popcalendar.js" type="text/javascript"></script>
</head>
<script type="text/javascript">
    function ViewInstanceFrame(Instance)//查询案件信息
    {
        var strURL = "../QueryAndCollect/TaskProcessView.aspx?IID=" + Instance;

        window.open(strURL, 'viewer', "height=" + (screen.availHeight - 30) + " , width=" + screen.availWidth + ", top=0, left=0,toolbar=no, menubar=no, scrollbars=no, location=n o, status=no");
    }

    //返回指定页面 addby zhongjian 20100629
    function back() {
        //window.history.back(-1); 
        var strBusiness = '<%= Request["Business"] %>';
        var returnflag = '<%= Request["returnflag"] %>';
        if (returnflag == "0") {
            window.location.href = "OnlineTask.aspx?Business=" + strBusiness;
        }
        else if (returnflag == "1") {
            window.location.href = "../<%=ConfigurationManager.AppSettings["dbsxUrl"]%>";
        }
    }

    function OpenReasonDiag(striid) {
        //转向网页的地址;
        var url = "OnlineReturn.aspx?serialiid=" + striid;

        var name = "补正详细内容";                 //网页名称，可为空;
        var iWidth = 350;                          //弹出窗口的宽度;
        var iHeight = 300;                         //弹出窗口的高度;
        //获得窗口的垂直位置
        var iTop = (window.screen.availHeight - 30 - iHeight) / 2;
        //获得窗口的水平位置
        var iLeft = (window.screen.availWidth - 10 - iWidth) / 2;
        window.open(url, name, 'height=' + iHeight + ',,innerHeight=' + iHeight + ',width=' + iWidth + ',innerWidth=' + iWidth + ',top=' + iTop + ',left=' + iLeft + ',status=no,toolbar=no,menubar=no,location=no,resizable=no,scrollbars=0,titlebar=no');
    }
</script>
<body>
    <form id="form1" runat="server">
    <div style="width: 99%; margin: 0px auto; text-align: center;">
        <table width="98%" border="0" align="center" id="tableQuery">
            <tr>
                <td>
                    <asp:Label ID="lblError" runat="server" Text="" Visible="false"></asp:Label>
                </td>
            </tr>
            <tr>
                <td>
                    申请编号：
                    <input maxlength="100" size="15" id="txtIID" name="txtIID" value="" runat="server" />
                    优先级
                    <select name="yxj" id="yxj" style="width: 90px" runat="server">
                        <option value="" selected="selected">全部</option>
                        <option value="0">普通</option>
                        <option value="1">加急</option>
                        <option value="2">特急</option>
                    </select>
                    <asp:Button ID="btnQuery" runat="server" Text="查询" class="NewButton" OnClick="btnQuery_Click" />
                    <input id="btnCleaner" type="button" value="返回" onclick="back()" class="NewButton" />
                </td>
            </tr>
        </table>
        <controlDefine:CustomGridView ID="gridviewCar" runat="server" AllowPaging="True"
            Width="98%" HideTextLength="20" DivFstClass-DivButtonClass="input" AutoGenerateColumns="False"
            ShowCmpAndCancel="True" AllowOnMouseOverEvent="False" ShowItemNumber="true" AutoGenerateDeleteConfirm="True"
            ShowHideColModel="None" SkinID="NewGrid" OnOnLoadData="recvgrid_OnLoadData" ShowGridViewSelect="List">
            <PagerSettings Visible="False" />
            <Columns>
                <asp:TemplateField HeaderText="受理编号">
                    <ItemTemplate>
                        <a href='#' onclick='ViewInstanceFrame("<%# Eval("iid") %>")'>
                            <%# Eval("iid") %></a>
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField HeaderText="办件类型" DataField="wname" />
                <asp:BoundField HeaderText="申请单位" DataField="name" />
                <asp:BoundField HeaderText="提交时间" DataField="submittime" />
                <asp:BoundField HeaderText="退回时间" DataField="accepted_time" />
                <asp:TemplateField HeaderText="补正补齐内容">
                    <ItemTemplate>
                        <a href='#' onclick='OpenReasonDiag("<%# Eval("iid") %>")'>
                            <%# GetRemark(Container)%></a>
                    </ItemTemplate>
                </asp:TemplateField>
            </Columns>
        </controlDefine:CustomGridView>
    </div>
    </form>
</body>
</html>
